Skip to content

Fix create-release crash when no PRs exist#30

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/create-release-no-prs
Mar 8, 2026
Merged

Fix create-release crash when no PRs exist#30
github-actions[bot] merged 1 commit into
mainfrom
fix/create-release-no-prs

Conversation

@vinitu

@vinitu vinitu commented Mar 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • grep in the PR collection pipeline exits with code 1 when no #123-style references are found in commit messages, which crashes the script under set -euo pipefail
  • Added || true to the grep pipeline so it gracefully handles commits without PR references (e.g. direct pushes to main)
  • Simplified GH_TOKEN env expression

Test plan

  • Push a commit directly to main (without a PR) and verify the release workflow succeeds
  • Create a PR, merge it, and verify the release notes still include PR links

🤖 Generated with Claude Code

- Add `|| true` to grep pipeline so it doesn't fail with exit 1
  when no PR references (#123) are found in commit messages
- Simplify GH_TOKEN expression to avoid secrets in comparisons
@github-actions github-actions Bot merged commit 4a9ea19 into main Mar 8, 2026
3 checks passed
@github-actions github-actions Bot deleted the fix/create-release-no-prs branch March 8, 2026 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant